#include "playtrk.h"

//playtrk::playtrk(QObject *parent) :
    //QObject(parent)
//{

//}

playtrk::playtrk(HMIDIOUT hand, vector<note> trkn, int cn)
{
    handle = hand;
    trknotes=trkn;
    cNote=cn;
}
bool playtrk::notEmpty()
{
    return (cNote<trknotes.size());
}

void playtrk::playnote()
{
    note n=trknotes[cNote];
    midiOutShortMsg(handle,n.message);
    cNote++;
}
